<div ng-controller="FxgradeCtrl" ng-init="listAction()">
    <ul class="sui-breadcrumb">
        <li>{{'代理商等级'| translate}}</li>
        <li>
            {{'List'|translate}}
        </li>
        <span class="sui-form sui-form pull-right">
            <a href="#/fxgrade/add" id="addNew" class="sui-btn btn-primary">+{{'add_new' | translate}}</a>
        </span>
    </ul>

    <table class="sui-table table-bordered">
        <thead>
            <tr>
                <th>{{'Name'|translate}}</th>
                <th>{{'grade_value'|translate}}</th>
                <th>{{'amount'|translate}}</th>
                <th>{{'count'|translate}}</th>
                <th ng-show="inWhiteList">{{'上级提成'|translate}}</th>
                <th ng-show="inWhiteList">{{'上上级提成'|translate}}</th>
                <th>{{'remark'|translate}}</th>
                <th>{{'operation'|translate}}</th>
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat="list in grade_list">
                <td>{{list.name}}</td>
                <td>{{list.value}}</td>
                <td>
                    {{list.trade_amount}}
                </td>
                <td>{{list.trade_number}}</td>
                <td ng-show="inWhiteList">{{list.the_superior}}%</td>
                <td ng-show="inWhiteList">{{list.on_the_superior}}%</td>
                <td>{{list.remark}}</td>
                <td>
                    <a href="#/fxgrade/add?grade_id={{list.grade_id}}&product_id={{list.product_id}}" class="sui-btn btn-success">{{'edit'|translate}}</a>
                </td>
            </tr>
        </tbody>
    </table>

    <!-- 分页start -->
    <pager page-no="1" page-size="pageSize" total="total_count" get-data="getList(pageNo)"></pager>
    <!-- 分页end -->
</div>